//
//  fetchPhotoExhibitionList.h
//  PhotoCircle
//
//  Created by wujungao on 12/15/15.
//  Copyright © 2015 wujungao. All rights reserved.
//

#import <Foundation/Foundation.h>

@class PCCommentModel;
@class photoExhibitionDetailModel;
@class gameDetailModel;

typedef void (^successExhibitionListBlock)(NSMutableArray *bannerArray,NSMutableArray *photoExhibitionArray);
typedef void (^successExhibtionDetailBlock)(photoExhibitionDetailModel *photoExhibitionDetail);
typedef void (^successMatchListBlock)(NSMutableArray *photoMatchArray);
typedef void (^sucessCommentBlock) (NSArray *commentArr);
typedef void (^sucessSubmitCommentBlock)(PCCommentModel *myCommemtModel);
typedef void (^sucessSupportBlock)();
typedef void (^failCodeBlock)(NSInteger code);
typedef void (^successMatchDetailBlock)(gameDetailModel *matchDetailModel);
typedef void (^failBlock)();

typedef void (^successGameListBlock)(NSMutableArray *gamelistArray);
typedef void (^successVoteBlock)(NSInteger voteStateCode);

@interface fetchData : NSObject

+(instancetype)shared;

// 请求个人相册详情
-(void)fetchUserAlbumDetailWith:(NSDictionary*)pDic SuccessBlock:(successGameListBlock)sblock failBlock:(failBlock)fblock;

-(void)fetchExhibitionListWithParameterDict:(NSDictionary *)paraDict successBlock:(successExhibitionListBlock)sblock failBlock:(failBlock)fBlock;
-(void)fetchExhibitionDetailWithParameterUUID:(NSString *)uuid successBlock:(successExhibtionDetailBlock)sblock failBlock:(failBlock)fBlock;

-(void)fetchMatchListWithParameterDict:(NSDictionary *)dict successBlock:(successMatchListBlock)sblock failBlock:(failBlock)fBlock;
-(void)fetchMatchDetailWithParameterDict:(NSDictionary *)dict successBlock:(successMatchDetailBlock)sblock failBlock:(failBlock)fBlock;

/**
 *  相册的评论列表
 *
 */
-(void)getCommentDataWithPatameterDict:(NSDictionary*)dic sucessBlock:(sucessCommentBlock)commentBlock otherCode:(failCodeBlock)codeBlock failBlock:(failBlock)failError;
/**
 *  照片评论接口
 *
 */
-(void)postSubmitCommentDataWithPatameterDic:(NSDictionary*)pDic imageData:(NSData*)imgData sucessBlock:(sucessSubmitCommentBlock)submitBlock otherCodeBlock:(failCodeBlock)codeBlock  failWithBlock:(failBlock)failError;

-(void)postSupportDic:(NSDictionary*)pDic sucessBlock:(sucessSupportBlock)sucessBlock otherCodeBlock:(failCodeBlock)codeBlock failWithBlock:(failBlock)failError;

-(void)fetchGameListSuccessBlock:(successGameListBlock)sblock failBlock:(failBlock)fblock;
-(void)postVoteWithParameterDict:(NSDictionary *)dict successBlock:(successVoteBlock)sblock failBlock:(failBlock)fblock;

@end







